package com.ruoyi.web.controller.pc.points;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.utils.StringUtils;
import com.ruoyi.common.utils.page.PageUtils;
import com.ruoyi.common.validator.group.AddGroup;
import com.ruoyi.web.domain.*;
import com.ruoyi.web.domain.vo.QueryVo;
import com.ruoyi.web.mapper.PoiApplyImageMapper;
import com.ruoyi.web.mapper.PoiApplyItemMapper;
import com.ruoyi.web.mapper.PoiApplyMapper;
import com.ruoyi.web.mapper.UcQuoTableMapper;
import com.ruoyi.web.service.IPoiApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.*;


@RestController
@RequestMapping("/points/poiApplyExamine")
public class PoiApplyExamineController extends BaseController {

    @Autowired
    private IPoiApplyService poiApplyService;



    @PreAuthorize("@ss.hasPermi('points:poiApplyExamine:list')")
    @GetMapping("/list")
    public TableDataInfo list(QueryVo queryVo) {
        queryVo.setQStatus(200);
        PageUtils page = poiApplyService.listByPage(queryVo);
        return getDataTable(page);
    }


    @PreAuthorize("@ss.hasPermi('points:poiApplyExamine:poiApplyExamine')")
    @PostMapping("/poiApplyExamine")
    public AjaxResult poiApplyExamine(@RequestBody PoiApply poiApply) {
        poiApplyService.poiApplyExamine(poiApply);
        return toAjax(1);
    }
}

